wxapp.tools.device = {
    getBattery: function() {
        return wx.getBatteryInfoSync().level;
    }
};